*** Settings ***
Documentation  用户相关
Library  SeleniumLibrary

*** keywords ***
用户登录    #后跟     用户名     密码
    [Arguments]     ${username}     ${password}
    Input Text  //*[@id="name"]		${username}
    Input Text  //*[@id="pass"]		${password}
    Click Element   xpath://*[@type="submit"]

验证成功登录    #后跟     用户名
    [Arguments]     ${username}
    Element Text Should Be  //span[@class="user_name"]/a[@class="dark"]     ${username}

验证失败登录    #后跟   提示
    [Arguments]     ${error_tip_msg}
    Element Text Should Be  //strong     ${error_tip_msg}

